<!--
 * @Description: filter
 * @Autor: dengyongliang
 * @Date: 2021-04-14 16:12:55
 * @LastEditors: dengyongliang
 * @LastEditTime: 2021-04-20 23:27:11
-->
<template>
  <div class="demo-container">
    <el-form ref="form" label-width="200px">
      <el-form-item label="YYYY-MM-DD">
        <b>{{ date }} => {{ date | dateformat('YYYY-MM-DD') }}</b>
      </el-form-item>
      <el-form-item label="YYYY-MM-DD hh:mm:ss">
        <b>{{ date }} => {{ date | dateformat('YYYY-MM-DD HH:mm:ss') }}</b>
      </el-form-item>
      <el-form-item label="转小写">
        <b>{{ str1 }} => {{ str1 | toLowerCase }}</b>
      </el-form-item>
      <el-form-item label="转大写">
        <b>{{ str2 }} => {{ str2 | toUpperCase }}</b>
      </el-form-item>
      <el-form-item label="数字格式化">
        <b>{{ num }} => {{ num | toThousandFilter }}</b>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  data() {
    return {
      date: new Date().getTime(),
      str1: 'XINNT.COM',
      str2: 'xinnt.com',
      num: 150000.001
    }
  },
  methods: {}
}
</script>
<style scoped></style>
